/**
 * Created by 徐宇健 on 2015/2/10 0010.
 */
$.extend($.fn.validatebox.defaults.rules, {
    eqPwd: {
        /*验证两次密码是否一致*/
        validator: function(value, param){
            return value==$(param[0]).val();
        },
        message: '两次密码不一致!'
    }
});

(function(jQuery){
    jQuery.fn.sheach = function(callback){
       var array = $(this);
        for(i = 0; i<array.length; i++){
            var o = array[i];
            callback.call(o,this,i);
        }

    }

})(jQuery);
